package org.example.easybuy.service.impl;

import org.example.easybuy.dao.OrderDetailDao;
import org.example.easybuy.entity.OrderDetail;
import org.example.easybuy.service.OrderDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderDetailServiceImpl implements OrderDetailService {

    @Autowired
    private OrderDetailDao orderDetailDao;
    @Override
    public List<OrderDetail> selectDetailByIds(String list) {
        return orderDetailDao.selectDetailByIds(list);
    }

    @Override
    public boolean addDetail(OrderDetail orderDetail) {
        return orderDetailDao.addDetail(orderDetail)==1;
    }
}
